﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Hangout.Services.Core.Score
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IUserScoreService" in both code and config file together.
    [ServiceContract]
    public interface IUserScoreService
    {
        [OperationContract]
        Hangout.Web.Model.UserScore IncreaseUserScore(int userId, int scoreInc, string accesstoken);
        [OperationContract]
        Hangout.Web.Model.UserScore DecreaseUserScore(int userId, int scoreDec, string accesstoken);
        [OperationContract]
        int? GetLastScore(int userId);
        [OperationContract]
        Hangout.Web.Model.UserScore InsertDefaultScore(int userId, string accesstoken);
        [OperationContract]
        Hangout.Web.Model.UserScore InsertScore(int userId, int score, int scoreChange, string accesstoken);

    }
}
